layui.define(['layer'],function (experts) {
    var $ = layui.$;

    experts("privilege",{
        all:function () {
            return $.ajax({
                url:layui.setter.apiHost + "/admin/api/privilege/all"
                ,type:"get"
            })
        }
    })
})